package com.brillilab.dao.mapper.experiments;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.brillilab.domain.po.experiments.ExperimentStepTimer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 实验阶段中的计时器 Mapper 接口
 * </p>
 *
 * @author WuMenghao
 * @since 2019-04-22
 */
public interface ExperimentStepTimerMapper extends BaseMapper<ExperimentStepTimer> {

    int setStateToEndById(@Param("id") Long id);

    int updateBatch(@Param("timers") List<ExperimentStepTimer> timers);

    int insertBatch(@Param("timers") List<ExperimentStepTimer> stepTimersToInsert);

    int setStateToEndByIds(@Param("ids")List<Long> timerIds);
}
